<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="layout" content="main"/>
    <title>Corpus Checked Tree: RichUI</title>
    <resource:checkedTreeView />
</head>

<body>
<div class="nav">
    <span class="menuButton"><a class="home" href="${createLinkTo(dir: '')}">Home</a></span>
</div>
<div class="body">
    <h1>Corpus RichUI Checked Tree</h1>
    <g:if test="${flash.message}">
        <div class="message">${flash.message}</div>
    </g:if>
    <g:form action="update">
        <richui:checkedTreeView id="ctree" xml="${data}" showRoot="true"/>
        <input type="hidden" id="selectedIds" name="selectedSubprojectIds" value=""/>
        <g:actionSubmit value="Update" action="update" onclick="collectCheckedNodes('ctree','selectedIds');"/>
    </g:form>
</div>
</body>
</html>
